package cn.tedu.mall.front.service.impl;

import cn.tedu.mall.front.mapper.FrontSpuDetailMapper;
import cn.tedu.mall.front.service.IFrontSpuDetailService;
import cn.tedu.mall.pojo.product.vo.SpuDetailStandardVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FrontSpuDetailServiceImpl implements IFrontSpuDetailService {

    @Autowired
    private FrontSpuDetailMapper spuDetailMapper;

    @Override
    public SpuDetailStandardVO getSpuDetail(Long id) {
        SpuDetailStandardVO spuDetailStandardVO = spuDetailMapper.selectSpuDetailBySpuId(id);
        return spuDetailStandardVO;
    }
}
